package com.cnc.ssm.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author Hibernate CodeGenerator
 */
public class PwOper implements Serializable {
    
    // 用户类型
    public static final String OPER_TYPE_ADMIN = "1";        // 系统管理员
    public static final String OPER_TYPE_CUSTOMER = "2";        // 普通用户
    
    // 上传方式
    public static final String UPLOAD_KIND_FTP = "0";        // FTP
    public static final String UPLOAD_KIND_OTHER = "1";        // 其他

    /**
     * identifier field
     */
    private String operCode;

    /**
     * persistent field
     */
    private String operName;

    /**
     * persistent field
     */
    private String operPwd;

    /**
     * nullable persistent field
     */
    private String uploadKind;

    /**
     * nullable persistent field
     */
    private String operType;

    /**
     * nullable persistent field
     */
    private String operStatus;

    /**
     * nullable persistent field
     */
    private String remark;

    /**
     * full constructor* 
     */
    private String percent;
    
    /**
     * 可查询的客户列表
     */
    private String queryOpers;
    
    
	public String getPercent() {
		return percent;
	}

	public void setPercent(String percent) {
		this.percent = percent;
	}

	public PwOper(java.lang.String operCode, java.lang.String operName, java.lang.String operPwd, java.lang.String emplCode, java.lang.String operType, java.lang.String operStatus, java.lang.String remark) {
        this.operCode = operCode;
        this.operName = operName;
        this.operPwd = operPwd;
        this.uploadKind = emplCode;
        this.operType = operType;
        this.operStatus = operStatus;
        this.remark = remark;
    }

    /**
     * default constructor
     */
    public PwOper() {
    }

    /**
     * minimal constructor
     */
    public PwOper(java.lang.String operCode, java.lang.String operName, java.lang.String operPwd) {
        this.operCode = operCode;
        this.operName = operName;
        this.operPwd = operPwd;
    }

    public java.lang.String getOperCode() {
        return this.operCode;
    }

    public void setOperCode(java.lang.String operCode) {
        this.operCode = operCode;
    }

    public java.lang.String getOperName() {
        return this.operName;
    }

    public void setOperName(java.lang.String operName) {
        this.operName = operName;
    }

    public java.lang.String getOperPwd() {
        return this.operPwd;
    }

    public void setOperPwd(java.lang.String operPwd) {
        this.operPwd = operPwd;
    }

    public java.lang.String getUploadKind() {
        return this.uploadKind;
    }

    public void setUploadKind(java.lang.String emplCode) {
        this.uploadKind = emplCode;
    }

    public java.lang.String getOperType() {
        return this.operType;
    }

    public void setOperType(java.lang.String operType) {
        this.operType = operType;
    }

    public java.lang.String getOperStatus() {
        return this.operStatus;
    }

    public void setOperStatus(java.lang.String operStatus) {
        this.operStatus = operStatus;
    }

    public java.lang.String getRemark() {
        return this.remark;
    }

    public void setRemark(java.lang.String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
                .append("operCode", getOperCode())
                .toString();
    }

    public boolean equals(Object other) {
        if (!(other instanceof PwOper)) return false;
        PwOper castOther = (PwOper) other;
        return new EqualsBuilder()
                .append(this.getOperCode(), castOther.getOperCode())
                .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
                .append(getOperCode())
                .toHashCode();
    }

    public String getQueryOpers() {
        return queryOpers;
    }

    public void setQueryOpers(String queryOpers) {
        this.queryOpers = queryOpers;
    }

}
